<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="keywords" content="web desktop" />
    <title>Nancy Desktop</title>
    <link type="text/css" href="/css/start/jquery-ui-1.7.2.custom.css" rel="stylesheet" />	
    <link rel="stylesheet" href="/css/style.css" type="text/css" />
    <link rel="stylesheet" href="/css/dock-menu.css" type="text/css" />
    <link rel="stylesheet" href="/css/jquery.contextMenu.css" type="text/css" />
    <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="/js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="/js/interface.js"></script>
    <script type="text/javascript" src="/js/core.js"></script>
    <script type="text/javascript" src="/js/jquery.contextMenu.js"></script>
    <!--[if lt IE 7]>
 <style type="text/css">
 .dock img { behavior: url(iepngfix.htc) }
 </style>
<![endif]-->
  </head>
  <body>
    <div id="desktop">
      <div id="desktopArea">
	<div id="addShortcut" title="添加链接地址">
	  <form>
	    <fieldset>
	      <input type="text" name="link" id="link" value="" class="text ui-widget-content ui-corner-all" />
	    </fieldset>
	  </form>
	  <p id="validateTips"></p>
	</div>
	<ul id="myMenu" class="contextMenu">
	  <li class="edit"><a href="#edit">Edit</a></li>
	  <li class="cut separator"><a href="#cut">Cut</a></li>
	  <li class="copy"><a href="#copy">Copy</a></li>
	  <li class="paste"><a href="#paste">Paste</a></li>
	  <li class="delete"><a href="#delete">Delete</a></li>
	  <li class="quit separator"><a href="#quit">Quit</a></li>
	</ul>
	<input type="hidden" id="shortcutCount" name="shortcutCount" value="{{shortcuts|length}}" />
	{% for shortcut in shortcuts %}
	<div id="shortcutItem">
	  <div id="dragItem{{forloop.counter0}}" style="position:relative;left:{{shortcut.left}};top:{{shortcut.top}};">
	    <div id="shortcutLogo"><a href="{{shortcut.link}}"><img src='{{shortcut.logo|default:"/images/nologo.png"}}' width="64" height="64"/></a></div>
	    <div id="shortcutName"><input type="hidden" id="shortcutID" value="{{shortcut.key.id}}" /><p id="dragName{{forloop.counter0}}">{{shortcut.name}}</p></div>
	  </div>
	</div>
	{% endfor %}
      </div>
      <div id="clear"></div>
      <div class="dock" id="dock2">
	<div class="dock-container2">
	  <a class="dock-item2" href="#"><span>首页</span><img src="/images/home.png" alt="home" /></a>
	  <a class="dock-item2" href="#" id="create-shortcut"><span>添加</span><img src="/images/add.png" alt="add" /></a> 
	  {% if user %}
	  <a class="dock-item2" href="{{logout_url}}"><span>退出</span><img src="/images/logoff.png" alt="home" /></a>
	  {% else %}
	  <a class="dock-item2" href="{{login_url}}"><span>登陆</span><img src="/images/home.png" alt="home" /></a>
	  {% endif %}
	</div>
    </div>
  </body>
</html>
